import request from '@/utils/request'

//查询文章列表
export function getArticleList(data) {
  return request({
    url: '/sys/articleController/articleManage/articleManage/page',
    method: 'post',
    data
  })
}

//查询文章详情
export function getArticleDetail(data) {
  return request({
    url: '/sys/articleController/articleManage/articleManage/getArticleDetail',
    method: 'post',
    data
  })
}

//新增文章
export function addArticle(data) {
  return request({
    url: '/sys/articleController/articleManage/articleManage/save',
    method: 'post',
    data
  })
}

//更新文章
export function updateArticle(data) {
  return request({
    url: '/sys/articleController/articleManage/articleManage/update',
    method: 'post',
    data
  })
}

//删除文章
export function deleteArticle(data) {
  return request({
    url: '/sys/articleController/articleManage/articleManage/delete',
    method: 'post',
    data
  })
}